package cn.ulyer.app;

import cn.ulyer.core.config.LogAspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication(scanBasePackages = "cn.ulyer")
@EnableJpaRepositories(basePackages = "cn.ulyer.**.repository")
@EntityScan(basePackages = "cn.ulyer.**.entity")
@EnableJpaAuditing
@Import(LogAspect.class)
public class AppStater {


    public static void main(String[] args) {
        SpringApplication.run(AppStater.class, args);
    }

}
